Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issues with UTF-8 display and navigation #303

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

alektron
Copy link
Contributor

This fixes two bugs related to UTF-8.

The first bug was in UTF-8 decoding and prevented certain multi byte characters from getting added to the font atlas correctly.
This issue was first noticed when trying to type a german 'Ü' into the target's Arguments field and only empty space showed up.
This is exactly the same as #184.
Sorry for the duplication but the rest of this pull request only really makes sense with this change.

The second bug is not so much a bug but more the missing implementation for UI_EventDeltaUnit_Char.
It now properly adjusts the delta to correctly jump over multi byte character in both directions.
Without this fix e.g. the previously mentioned 'Ü' acted like two characters when trying to move the cursor.

There still seems to be outstanding issues with rendering multi byte characters where monospaced font is used. For example the watch window.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant